package com.adjaisd.scarecrow.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author adjaisd
 * @since 2022-03-10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sc_device")
@ApiModel(value="Device对象", description="")
public class Device implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备号")
    private Long number;

    @ApiModelProperty(value = "设备名")
    private String name;

    @ApiModelProperty(value = "设备介绍")
    private String description;

    @ApiModelProperty(value = "绑定时间")
    private Long bindTime;

    @ApiModelProperty(value = "设备图标")
    private String icon;

    @ApiModelProperty(value = "拥有者用户id")
    private Long ownerId;


}
